package com.smzd.core.domain;

public class BaseScopeOwnedEntity<S extends IntIdEntity, O extends IntIdEntity>
		extends BaseScopeEntity<S> implements IScopeOwnedEntity<S, O> {
	private static final long serialVersionUID = 3098456163909495957L;

	protected O owner;

	@Override
	public void setOwner(O owner) {
		this.owner = owner;
	}

	@Override
	public O getOwner() {
		return owner;
	}

	@Override
	protected void extStrings(StringBuffer sb) {
		super.extStrings(sb);
		sb.append(", owner: ").append(owner == null ? null : owner.getId());
	}
}
